<template>
  <div class="home-hot">
    <div class="hot-top">
 <!-- <i class="hot-icon"></i>  -->
      <i class="iconfont">&#xe619;</i>
      <span>本周热门榜单</span>
      <span class="hot-all">全部榜单 > </span>
    </div>
    <ul class="hot-list">
      <li class="hot-item" v-for="item in hotList" :key="item.id">
        <img :src="item.imgUrl" alt="">
        <p>{{ item.title }}</p>
        <p>
          <span class="hot-mark">¥{{ item.mark }}</span>起
        </p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "HomeHot",
  props: {
    hotList: {
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    return {

    }
  }
}
</script>

<style scoped>
  .home-hot {
    background: #fff;
    font-size: .28rem;
    margin-bottom: .2rem;
  }
  .hot-top {
    /*position: relative;*/
    line-height: .44rem;
    margin-bottom: .1rem;
  }
  /*.hot-top .hot-icon {*/
  /*  position: relative;*/
  /*  top: .02rem;*/
  /*  display: inline-block;*/
  /*  width: .4rem;*/
  /*  height: .4rem;*/
  /*  background: url('~assets/images/common/nav.png') no-repeat;*/
  /*  background-size: 20px 300px;*/
  /*}*/
  .hot-top i {
    font-size: .32rem;
    color: red;
    margin: 0 .02rem 0 .2rem;
  }
  .hot-top span {
    color: #212121;
    font-size: .32rem;
  }
  .hot-top span.hot-all {
    position: absolute;
    right: .2rem;
    color: #616161;
  }
  .hot-list {
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    height: 3.2rem;
  }
  .hot-item {
    display: inline-block;
    padding: 0 .2rem;
    width: 2rem;
    height: 2rem;
  }
  .hot-item img {
    width: 100%;
    height: 100%;
  }
  .hot-item p {
    margin-top: .1rem;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .hot-item p .hot-mark {
    color: #ff8300;
    font-size: .32rem;
  }
</style>
